<?php 
include './include/conf.php';
$ident = explode(".",$_POST['identifiant']);
$select_auteur = $pdo->prepare('select * from adherent where lower(prenom) = ? and lower(nom) = ?');
$select_auteur->execute(array($ident[0],$ident[1]));
$id_user = $select_auteur->fetch();
$insert = $pdo->prepare("insert into commentaire values ('',?,?,?,1,?)");
$insert->execute(array($id_user->id_adherent,$_POST['com'],date("Y-m-d"),$_POST['id_information']));
//header('Location: information.php?idInfo='.$_POST['id_information']);
?>